//
//  SurveyViewController.m
//  唧歪
//
//  Created by ZC on 15/7/9.
//  Copyright (c) 2015年 MWJ. All rights reserved.
//

#import "SurveyViewController.h"
#import "SurveyCell.h"

@interface SurveyViewController ()

@end

@implementation SurveyViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    
    //设置tableview为不可滚动
    self.tableView.scrollEnabled = NO;
    
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}
#pragma mark - 返回tableview的行数
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{
    return 6;
}

#pragma mark - 返回tableview的高度
-(CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath{
    return 40;
}
#pragma mark - cell的内容加载
-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
    
    UINib *nib = [UINib nibWithNibName:@"SurveyCell" bundle:nil];
    [self.tableView registerNib:nib forCellReuseIdentifier:@"surveyCell"];
    
    static NSString *cellIdentifier=@"surveyCell";
    SurveyCell *cell = [tableView dequeueReusableCellWithIdentifier:cellIdentifier];
    
    
    NSMutableArray *array=[[NSMutableArray alloc]initWithObjects:@"我要增加摇一摇有红包的功能",@"我要增加可以上传照片的功能",@"我要增加可以上传语音的功能",@"我要增加帖子的显示时间",@"强烈要求上架安卓版",@"这个app做的跟屎一样的，趁早关了吧", nil];
    
    [cell.checkButton setImage:[UIImage imageNamed:@"white.png"] forState:UIControlStateNormal];
    cell.labelText.text=array[indexPath.row];
    
    //设置cell选中时候颜色为无色
    cell.selectionStyle = UITableViewCellSelectionStyleNone;
    
    return cell;
}


/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

- (IBAction)submit:(id)sender {
}
@end
